<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="description" content="HTML5 audio player with spectrum visualizer">
        <meta name="author" content="Minyuan Ye">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>HTML5 audio player with spectrum visualizer</title>
        <link rel="stylesheet" href="style/main.css">
        <link rel="shortcut icon" href="favicon.ico">
        <script src="script/db.js"></script>
        <script src="script/md5.js"></script>
        <script src="script/audio.js"></script>
        <script src="script/ui.js"></script>
    </head>
    <body>
        <header>
            <span id="showControl">PLAYLIST</span> <span id="info"> Audio Player</span>
        </header>
        <div class="wrapper">
            <aside class="control">
                <p  class="winTitle">
                <span title="close" id="close">X</span>
                </p>
                <ul id="controlPanel">
                    <li class='play'>
                        <div id="preBtn" class="controlBtn" title="previous">I&lt;</div>
                        <div id="playBtn"  class="controlBtn" title="stop">&gt</div>
                        <div id="nextBtn" class="controlBtn" title="next">&gt;I</div>
                    </li>
                    <li>
                        <div id="emptyList" title="empty the list">
                            Empty
                        </div>
                    </li>
                    <li>
                        <div class="add" title="add files to list, you can also drag files to the list">
                            <label for="addFiles" >Add </label>
                            <input type="file" id="addFiles" multiple />
                        </div>
                    </li>
                </ul>
                <div class="dividLine"></div>
                <ol id="playlist">
                </ol>
            </aside>
            <div id="visualizer">
                <canvas width="800" height="350" id="canvas">!Canvas not supported by your browser :(</canvas>
                <div id="mirrorWrapper">
                <canvas width="800" height="250" id="mirror"></canvas>
                </div>
            </div>
            <input type="range" min="0" max="100" step="1" value="100" id="volumeCtrlId">
            <output id="volumeValueId">
        </div>
    </body>
</html>